package Persistant.Dao;

import java.util.List;

import model.TForumTitle;
import model.VForumTitle;


public interface ForumDAO {
	public int addFoum(TForumTitle forum);
	public boolean deleteForum(int forumid);
	public boolean updateForum(TForumTitle Forum);
	public boolean increaseReviewCounter(int forumid);
	public boolean increaseScanCounter(int forumid);
	public TForumTitle getTForumById(int forumid);
	public VForumTitle getVForumById(int forumid);
	public List<VForumTitle> getForumListByPage(String userid,int 
			currentPage, int pageSize);
	public int getTForumAmountByUser(String userid);
	public int getPageAmount(String userid,int pageSize);
	public List<VForumTitle> getForumListByLike(String userid,
			String likecondtion,int currentPage,int pageSize);
	public List<VForumTitle> getForumListByLike(
			String likecondtion,int currentPage,int pageSize);
	public List<VForumTitle> getForumsByUser(String userid);
}
